package com.laixu.estore;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

// 启动Web环境 tomcat端口
    // 所有代码会部署到tomcat下
    // 前端访问 主机+tomcat端口/代码/网页
@MapperScan("com.laixu.estore.dao")
@SpringBootApplication
public class EstoreApplication {

    public static void main(String[] args) {
        // 启动Spring的环境 创建容器 ApplicationContext
        // 注解生效 @ComponentScan("com.laixu");
        SpringApplication.run(EstoreApplication.class, args);
    }

}